home *** CD-ROM | disk | FTP | other *** search
- Path: kjpoglit.!kjpoglit
- From: kjpoglit@kjpoglit. (Karl Poglitsch)
- Newsgroups: comp.lang.c++
- Subject: Re:HELP !!! Memory - Allocation
- Date: 26 Jan 1996 01:01:45 GMT
- Organization: i-conn
- Distribution: world
- Message-ID: <4e995p$foa@news.iconn.net>
- Reply-To: kjpoglit@kjpoglit.
- NNTP-Posting-Host: hd-ts00-11.iconn.net
-
- I'd probably use
- new since that is
- C++. I'd probably
- tried try to stick
- with one
- language...
-
-
- In message
- <NEWTNews.751.822443
- 462.Postmaster@Jerus
- alem.netvision.net.i
- l>,
- iti@Jerusalem.netvis
- ion.net.il writes:
-
- >
- >
- >I am using Visual
- C++ to write a
- Windows Application
- - and I am having
- >a memory problem.
- I want to
- dynamically
- allocate "nTemp"
- bytes of memory
- >to read in a char
- string, or the most
- memory available up
- to "nTemp"
- >bytes.
- >
- >My questions being:
- > 1. How can I most efficiantly do this?
- > 2. Should I use
- > -> pChar = (char*) malloc(nTemp); Or
- > -> pChar = new char[nTemp];
- >
- >Please send any advice you have for me to my EMail address:
- > iti@netvision.net.il
- >
- >Thanks
- >Yaakov
- >
- >
-
-
-
-